<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>一览</title>
</head>
<body>
	<a href="AddressServlet?action=add">添加</a>
	<hr>
	<c:forEach items="${list}" var="addr">
		<a href="AddressServlet?action=update&id=${addr.id }">${addr.address}</a>
		<a href="AddressServlet?action=delete&id=${addr.id }">删除</a>
		<hr>
	</c:forEach>
	<hr>
	${msg}
</body>
</html>
